<%--
    Document   : login
    Created on : 01/06/2009, 22:05:09
    Author     : Leonardo
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ page isELIgnored="false"%>

<html>
    <head>
        <link rel="stylesheet" href="css/style.css" type="text/css" charset="utf-8" />
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Turismo RBC @ Barnabé Solutions :: Categorias ::</title>
    </head>
    <body>
        <table align="center" cellpadding="0" cellspacing="0">
            <tr>
                <td id="logoLogin">
                </td>
                <td valign="top">
                    <table cellpadding="0" cellspacing="0">
                        <tr>
                            <td id="nav" style="width:525px; background-image:url('imagem/header.jpg');">
                                <ul>
                                    <li class="selected" >
                                        <a href="">Home</a>
                                    </li>
                                    <li>
                                        <a href="">Login</a>
                                    </li>
                                    <li>
                                        <a href="">Paises</a>
                                    </li>
                                    <li class="last">
                                </ul>
                            </td>
                        </tr>
                        <tr>
                            <td valign="top" style="height:500px;">
                                <div id="body">
                                    <div id="body-top">
                                        <div id="body-bot">
                                            <img src="imagem/login_logo.png" width="127" height="25" alt="login_logo" align="left"/>
                                            &nbsp;<br>
                                            &nbsp;<br>
                                            &nbsp;<br>
                                            <form name="login" action="ServletMain" method="POST">
                                                <table>
                                                    <tr>
                                                        <td colspan="2" width="500px">
                                                            <hr>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td align="right">
                                                            <strong>Login :</strong>
                                                        </td>
                                                        <td align="left">
                                                            &nbsp;<input class="txtBox" type="text" name="txtLogin" value="" size="20"  style="width:180px;"/>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td align="right">
                                                            <strong>Senha :</strong>
                                                        </td>
                                                        <td align="left">
                                                            &nbsp;<input class="txtBox" type="password" name="txtSenha" value="" size="20" style="width:180px;" />
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td colspan="2">
                                                            <hr>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td>
                                                            &nbsp;
                                                        </td>
                                                        <td align="right">
                                                            <input type="submit" value="Hello World" name="btLogar" class="button"/>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td class="error" colspan="2">
                                                            <c:choose>
                                                                <c:when test="${erro == 'login'}">
                                                                    "Login Inválido. Rá!"
                                                                    <c:out value="${exception}"></c:out>
                                                                </c:when>
                                                            </c:choose>
                                                        </td>
                                                    </tr>
                                                </table>
                                                <input type="hidden" name="action" value="login" />
                                            </form>
                                            <div class="clear"></div>
                                            <div class="body-hr"></div>
                                            <div id="footer">
                                                <div id="footer-1">
                                                    Alunos :<br>
                                                    &nbsp;<br>
                                                    &nbsp;
                                                </div>
                                                <div id="footer-3">
                                                    &nbsp;&nbsp;Leonardo C. Steil <br>
                                                    &nbsp;&nbsp;Arthur F. Zanona <br>
                                                    &nbsp;&nbsp;Nilton Crestani de Araujo
                                                </div>
                                                <div class="clear"> </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </td>
                        </tr>
                    </table>
                    <table align="center" bgcolor="white" border="3">
                        <tr>
                            <td>
                                <img src="imagem/nb-logo2.gif" alt="nb-logo2"/>&nbsp;
                                <img src="imagem/tomcat.gif" width="55" height="35" alt="glassfish"/>&nbsp;
                                <img src="imagem/mysql_logo.gif"  alt="mysql_logo"/>                                
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </body>
</html>
